mkdir -p build

gcc -g -rdynamic yecc.c lexer.c preprocessor.c parser.c codegen.c debug.c -o build/yecc

./build/yecc ./test/codegen_test/test02.txt



riscv64-unknown-elf-as -march=rv64i -mabi=lp64 build/code.asm -o build/code.o
riscv64-unknown-elf-ld -T test/link.lds build/code.o -o build/code.elf
riscv64-unknown-elf-objcopy -S -O binary build/code.elf build/code.bin
riscv64-unknown-elf-objdump -D build/code.elf > build/code.txt

cd ..
./yemu/image/yecc.sh

cd yemu
make

./build/yemu